package com.zjitc;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/7 14:08
 * @description:
 */
@Configuration
@PropertySource("classpath:db.properties")
public class DataSourceProperties {

  @Value("${hikari.username}")
  private String username;

  @Value("${hikari.password}")
  private String password;

  @Value("${hikari.url}")
  private String jdbcurl;

  @Value("${hikari.driver}")
  private String Driver;

  public String getUsername() {
    return username;
  }

  public String getPassword() {
    return password;
  }

  public String getJdbcurl() {
    return jdbcurl;
  }

  public String getDriver() {
    return Driver;
  }
}
